package com.lianzai.mobile.dao;

import com.lianzai.mobile.domain.CarPriceRuleDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

/**
 * 金额规则表
 * @author zb
 * @email 1106900429@qq.com
 * @date 2018-12-16 17:07:19
 */
@Mapper
public interface CarPriceRuleDao {

	CarPriceRuleDO get(Long id);
	
	List<CarPriceRuleDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(CarPriceRuleDO carPriceRule);
	
	int update(CarPriceRuleDO carPriceRule);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);

	int saveLs(Map map);

	int updateLs(CarPriceRuleDO carPriceRule);

	int saveLsSegRule(Map map);

	List<Map> getSegInfo(long ruleId);

	int removeSegInfo(long ruleId);

	int bind(Map map);

	List<Map> cloudlist(String[] ids);

	List<Map<String, Object>> queryRuleCommunityList(java.util.Map<String, Object> map);

	int saveWithId(CarPriceRuleDO carPriceRule);

	int removeAll();

	int removeAllSegInfo();
}
